package com.crionics.ghtable;

import javax.swing.JTable;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableModel;

/**
 * The Class JGHTable.
 */
@SuppressWarnings("serial")
public class JGHTable extends JTable {

	/**
	 * Instantiates a new jGH table.
	 *
	 * @param tableModel the table model
	 */
	public JGHTable(TableModel tableModel) {
		super(tableModel);
	}

	/**
	 * Instantiates a new jGH table.
	 */
	public JGHTable() {
		super();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected JTableHeader createDefaultTableHeader() {
		return new GroupableTableHeader(getColumnModel());
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public GroupableTableHeader getTableHeader() {
		return (GroupableTableHeader) super.getTableHeader();
	}
}
